﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _2021_5_17
{
    class Hero
    {
        public string HeroName { get;set; }
        public string HeroInfo { get; set; }
        public string PlayerName { get; set; }
        public int Attack { get; set; }
        public int Defense { get; set; }
        public int Speed { get; set; }
        public string Skill1 { get; set; }
        public string Skill2 { get; set; }
        public string Skill3 { get; set; }

        public Hero() { }

        public Hero( string heroName , string heroInfo , string playerName , int attack , int defense , int speed , string skill1, string skill2, string skill3 )
        {
            this.HeroName = heroName;
            this.HeroInfo = heroInfo;
            this.PlayerName = playerName;
            this.Attack = attack;
            this.Defense = defense;
            this.Speed = speed;
            this.Skill1 = skill1;
            this.Skill2 = skill2;
            this.Skill3 = skill3;
        }

        public void PrintInfo()
        {
            Console.WriteLine("我是{0}，{1}，我的昵称是{2}，我的攻击力是{3}，防御是{4}，速度是{5}。\n我的技能有{6}，{7}和{8}"
                ,this.HeroName,this.HeroInfo,this.PlayerName,this.Attack,this.Defense,this.Speed,this.Skill1,this.Skill2,this.Skill3);
        }
    }
}
